package org.activision.io.scripts.interfaces;

import org.activision.model.player.Player;
import org.activision.io.scripts.interfaceScript;

public class i762 extends interfaceScript {
	@Override
	public void actionButton(Player p, int packetId, int buttonId, int buttonId2, int buttonId3) {
		switch(buttonId) {
			case 19: // Note
				if(p.getBank().withdrawNote == false) {
					p.getBank().withdrawNote = true;
				} else {
					p.getBank().withdrawNote = false;
				}
			break;
		}
		switch(packetId) {
		case 79: // Withdraw-1
			if(buttonId == 93) {
				p.getBank().deleteItemToInventory(buttonId2, buttonId3, 1, false);
			}
		break;
		case 24: // Withdraw-5
			p.getBank().deleteItemToInventory(buttonId2, buttonId3, 5, false);
		break;
		case 48: // Withdraw-10
			p.getBank().deleteItemToInventory(buttonId2, buttonId3, 10, false);
		break;
		case 13: // Withdraw-X
			//TODO
		break;
		case 55: // Withdraw-All
			p.getBank().deleteItemToInventory(buttonId2, buttonId3, 2147483647, false);
		break;
		case 0: // Withdraw-All but one
			p.getBank().deleteItemToInventory(buttonId2, buttonId3, 2147483647, true);
		break;
		default:
			System.out.println(packetId);
		break;
		}
	}
}